package com.spa.infrastructure.service.douyin.result;

import lombok.Data;

import java.util.List;

@Data
public class ShopPoiQueryResult {

    private Data data;

    private Extra extra;

    @lombok.Data
    public static class Data {

        private List<PoiRoot> pois;

        private int total;

        private int error_code;

        private String description;

    }

    @lombok.Data
    private static class Extra {

        private int error_code;

        private int sub_error_code;

        private int now;

        private String description;

        private String sub_description;

        private String logid;

    }

    @lombok.Data
    public static class PoiRoot {

        private Poi poi;

        private AccountRoot root_account;

        private Account account;
    }

    @lombok.Data
    public static class Poi {

        private String latitude;
        private String longitude;
        private String poi_id;
        private String poi_name;
        private String address;
    }

    @lombok.Data
    private static class AccountRoot {

        private String account_id;
        private String account_name;
        private String account_type;
    }

    @lombok.Data
    private static class Account {
        private AccountRoot parent_account;
        private AccountRoot poi_account;
    }
}
